﻿using System.Collections.Generic;
using Accountant.DataModel;

namespace Accountant.Controls
{
  public partial class BalanceTable
  {
    public BalanceTable()
    {
      InitializeComponent();
    }
  }
  public class BalanceViewModel
  {
    public List<BalanceRow> Rows { get; set; }

    public BalanceViewModel()
    {
      Rows = new List<BalanceRow>
               {
                 new BalanceRow {Currency = new Currency {Name = "BYR"}, Prev = 100, Curr = 20, Total = 120},
                 new BalanceRow {Currency = new Currency {Name = "USD"}, Prev = 150, Curr = -10, Total = 140},
                 new BalanceRow {Currency = new Currency {Name = "EUR"}, Prev = 200, Curr = 0, Total = 200},
                 new BalanceRow {Prev = 300, Curr = 8, Total = 308},
               };
    }
  }
  public class BalanceRow
  {
    public Currency Currency { get; set; }
    public decimal Prev { get; set; }
    public decimal Curr { get; set; }
    public decimal Total { get; set; }
  }
}
